package com.hnguigu.health.houduan.lcj.controller_lcj;

import com.hnguigu.health.houduan.lcj.pojo_lcj.TCheckgroup_lcj;
import com.hnguigu.health.houduan.lcj.service_lcj.TCheckgroupService_lcj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/tcheckgroup")
public class TCheckgroupController_lcj {
    @Autowired(required = false)
    TCheckgroupService_lcj tcheckgrou;

    @GetMapping("/getAll")
    @ResponseBody
    public List<TCheckgroup_lcj> getAll(){
        return tcheckgrou.findAll();
    }

}
